<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    /*子孙后代选择器*/
    /*body div div p{color: red}*/
    /*子元素选择器*/
    body>div>p{color: red;}
    /*未访问*/
    a:link{color: red;}
    /*访问过*/
    a:visited{color: green;}
    /*悬停*/
    a:hover{color: yellow;}
    /*点击/激活*/
    a:active{color: blue}
  </style>
</head>
<body>
<a href="01文本相关.html">超链接1</a>
<a href="02简历练习.html">超链接2</a>
<a href="03图片标签.html">超链接3</a>
<p>p1</p>
<div><p>p2</p></div>
<div>
  <div><p>p3</p></div>
  <div>
    <div><p>p4</p></div>
  </div>
</div>
</body>
</html>